package com.zhiche.lisa.bms.dao.model.receipt;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 *  收款确认明细表
 * </p>
 *
 * @author hongbo
 * @since 2018-09-27
 */
@TableName("lisa_receipt_affirm_dtl")
public class ReceiptAffirmDtl extends Model<ReceiptAffirmDtl> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 主表id
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 关联发票id
     */
	@TableField("invoice_id")
	private Long invoiceId;
    /**
     * 发票号
     */
	@TableField("invoice_code")
	private String invoiceCode;
    /**
     * 发票金额
     */
	@TableField("invoice_sum")
	private BigDecimal invoiceSum;
    /**
     * 待付金额
     */
	@TableField("undete_sum")
	private BigDecimal undeteSum;
    /**
     * 到账金额
     */
	@TableField("account_sum")
	private BigDecimal accountSum;
    /**
     * 登记日期
     */
	private Date date;

	/**
	 * 已收金额
	 */
	@TableField("receipt_sum")
	private BigDecimal receiptSum;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public Long getInvoiceId() {
		return invoiceId;
	}

	public void setInvoiceId(Long invoiceId) {
		this.invoiceId = invoiceId;
	}

	public String getInvoiceCode() {
		return invoiceCode;
	}

	public void setInvoiceCode(String invoiceCode) {
		this.invoiceCode = invoiceCode;
	}

	public BigDecimal getInvoiceSum() {
		return invoiceSum;
	}

	public void setInvoiceSum(BigDecimal invoiceSum) {
		this.invoiceSum = invoiceSum;
	}

	public BigDecimal getUndeteSum() {
		return undeteSum;
	}

	public void setUndeteSum(BigDecimal undeteSum) {
		this.undeteSum = undeteSum;
	}

	public BigDecimal getAccountSum() {
		return accountSum;
	}

	public void setAccountSum(BigDecimal accountSum) {
		this.accountSum = accountSum;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public BigDecimal getReceiptSum() {
		return receiptSum;
	}

	public void setReceiptSum(BigDecimal receiptSum) {
		this.receiptSum = receiptSum;
	}

	@Override
	public String toString() {
		return "ReceiptAffirmDtl{" +
				"id=" + id +
				", headId=" + headId +
				", invoiceId=" + invoiceId +
				", invoiceCode='" + invoiceCode + '\'' +
				", invoiceSum=" + invoiceSum +
				", undeteSum=" + undeteSum +
				", accountSum=" + accountSum +
				", date=" + date +
				", receiptSum=" + receiptSum +
				"} " + super.toString();
	}
}
